<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>OpenShoe: sysclk.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenShoe
   &#160;<span id="projectnumber">0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">sysclk.h</div>  </div>
</div>
<div class="contents">
<a href="uc3c_2sysclk_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef CHIP_SYSCLK_H_INCLUDED</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define CHIP_SYSCLK_H_INCLUDED</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00041"></a>00041 <span class="preprocessor">#include &lt;<a class="code" href="board_8h.html" title="Standard board header file.">board.h</a>&gt;</span>
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00045"></a>00045 <span class="preprocessor">#endif</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="comment">// Bugzilla #11808</span>
<a name="l00048"></a>00048 <span class="preprocessor">#ifndef AVR32_PDCA_CLK_PBC</span>
<a name="l00049"></a><a class="code" href="uc3c_2sysclk_8h.html#a1e1d7eaa2a45333b24bbba2d9edb12d8">00049</a> <span class="preprocessor"></span><span class="preprocessor">#define AVR32_PDCA_CLK_PBC                 128</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span>  
<a name="l00052"></a>00052 <span class="preprocessor">#ifndef AVR32_MDMA_CLK_PBC</span>
<a name="l00053"></a><a class="code" href="uc3c_2sysclk_8h.html#a2033d306bc2ba036e527d44646dafad9">00053</a> <span class="preprocessor"></span><span class="preprocessor">#define AVR32_MDMA_CLK_PBC                 129</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00055"></a>00055 <span class="preprocessor"></span>  
<a name="l00056"></a>00056 <span class="preprocessor">#ifndef AVR32_USART1_CLK_PBC</span>
<a name="l00057"></a><a class="code" href="uc3c_2sysclk_8h.html#a9c60604c1aea2360a48a0ea93da827e3">00057</a> <span class="preprocessor"></span><span class="preprocessor">#define AVR32_USART1_CLK_PBC               130</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span>  
<a name="l00060"></a>00060 <span class="preprocessor">#ifndef AVR32_SPI0_CLK_PBC</span>
<a name="l00061"></a><a class="code" href="uc3c_2sysclk_8h.html#a6bc6681a2dcf0960482cf587d1f00ba9">00061</a> <span class="preprocessor"></span><span class="preprocessor">#define AVR32_SPI0_CLK_PBC                 131</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span>  
<a name="l00064"></a>00064 <span class="preprocessor">#ifndef AVR32_CANIF_CLK_PBC</span>
<a name="l00065"></a><a class="code" href="uc3c_2sysclk_8h.html#a14996800e45cf8ce3a59237d66de9a37">00065</a> <span class="preprocessor"></span><span class="preprocessor">#define AVR32_CANIF_CLK_PBC                132</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span>  
<a name="l00068"></a>00068 <span class="preprocessor">#ifndef AVR32_TC0_CLK_PBC</span>
<a name="l00069"></a><a class="code" href="uc3c_2sysclk_8h.html#a0a62cca33dfc872eace7a76a614f143e">00069</a> <span class="preprocessor"></span><span class="preprocessor">#define AVR32_TC0_CLK_PBC                  133</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00071"></a>00071 <span class="preprocessor"></span>  
<a name="l00072"></a>00072 <span class="preprocessor">#ifndef AVR32_ADCIFA_CLK_PBC</span>
<a name="l00073"></a><a class="code" href="uc3c_2sysclk_8h.html#ab66bb8270140c74f2fe0ac8dab2cc44c">00073</a> <span class="preprocessor"></span><span class="preprocessor">#define AVR32_ADCIFA_CLK_PBC               134</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span><span class="preprocessor">#endif  </span>
<a name="l00075"></a>00075 <span class="preprocessor"></span>
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 
<a name="l00082"></a>00082 
<a name="l00089"></a>00089 <span class="preprocessor">#ifndef CONFIG_SYSCLK_SOURCE</span>
<a name="l00090"></a><a class="code" href="group__sysclk__group.html#ga7bb6bbe88b7fb398ef8f0befe936e0e7">00090</a> <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_SOURCE   SYSCLK_SRC_RCSYS</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00092"></a>00092 <span class="preprocessor"></span>
<a name="l00102"></a>00102 <span class="preprocessor">#ifndef CONFIG_SYSCLK_CPU_DIV</span>
<a name="l00103"></a>00103 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_CPU_DIV  0</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00105"></a>00105 <span class="preprocessor"></span>
<a name="l00115"></a>00115 <span class="preprocessor">#ifndef CONFIG_SYSCLK_PBA_DIV</span>
<a name="l00116"></a>00116 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_PBA_DIV  0</span>
<a name="l00117"></a>00117 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00118"></a>00118 <span class="preprocessor"></span>
<a name="l00128"></a>00128 <span class="preprocessor">#ifndef CONFIG_SYSCLK_PBB_DIV</span>
<a name="l00129"></a>00129 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_PBB_DIV  0</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span>
<a name="l00141"></a>00141 <span class="preprocessor">#ifndef CONFIG_SYSCLK_PBC_DIV</span>
<a name="l00142"></a>00142 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_PBC_DIV  0</span>
<a name="l00143"></a>00143 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00144"></a>00144 <span class="preprocessor"></span>
<a name="l00156"></a>00156 <span class="preprocessor">#ifdef __DOXYGEN__</span>
<a name="l00157"></a>00157 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_INIT_CPUMASK</span>
<a name="l00158"></a>00158 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00159"></a>00159 <span class="preprocessor"></span>
<a name="l00171"></a>00171 <span class="preprocessor">#ifdef __DOXYGEN__</span>
<a name="l00172"></a>00172 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_INIT_PBAMASK</span>
<a name="l00173"></a>00173 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00174"></a>00174 <span class="preprocessor"></span>
<a name="l00186"></a>00186 <span class="preprocessor">#ifdef __DOXYGEN__</span>
<a name="l00187"></a>00187 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_INIT_PBBMASK</span>
<a name="l00188"></a>00188 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00189"></a>00189 <span class="preprocessor"></span>
<a name="l00201"></a>00201 <span class="preprocessor">#ifdef __DOXYGEN__</span>
<a name="l00202"></a>00202 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_INIT_PBCMASK</span>
<a name="l00203"></a>00203 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00204"></a>00204 <span class="preprocessor"></span>
<a name="l00205"></a>00205 
<a name="l00207"></a>00207 
<a name="l00208"></a><a class="code" href="group__sysclk__group.html#ga95a749ec308ac07efb9521f2f56ad351">00208</a> <span class="preprocessor">#define SYSCLK_SRC_RCSYS        0       //!&lt; System RC oscillator</span>
<a name="l00209"></a><a class="code" href="group__sysclk__group.html#ga40595c85aa33898ff3a6cfbd4f8ef7b9">00209</a> <span class="preprocessor"></span><span class="preprocessor">#define SYSCLK_SRC_OSC0         1       //!&lt; Oscillator 0</span>
<a name="l00210"></a><a class="code" href="group__sysclk__group.html#ga9d44be291573208b5b1152f2b6ab1d3a">00210</a> <span class="preprocessor"></span><span class="preprocessor">#define SYSCLK_SRC_OSC1         2       //!&lt; Oscillator 1</span>
<a name="l00211"></a><a class="code" href="group__sysclk__group.html#gacce44c311c87522d71fe51bf4cd37f58">00211</a> <span class="preprocessor"></span><span class="preprocessor">#define SYSCLK_SRC_PLL0         3       //!&lt; Phase Locked Loop 0</span>
<a name="l00212"></a><a class="code" href="group__sysclk__group.html#gaa46c965047bb81e94066d8df57cb719f">00212</a> <span class="preprocessor"></span><span class="preprocessor">#define SYSCLK_SRC_PLL1         4       //!&lt; Phase Locked Loop 1</span>
<a name="l00213"></a><a class="code" href="group__sysclk__group.html#gaa3b782df811d75bf3cf9f4ba8c2266b0">00213</a> <span class="preprocessor"></span><span class="preprocessor">#define SYSCLK_SRC_RC8M         5       //!&lt; 8 MHz RC oscillator</span>
<a name="l00214"></a>00214 <span class="preprocessor"></span>
<a name="l00215"></a>00215 
<a name="l00217"></a>00217 
<a name="l00218"></a><a class="code" href="group__sysclk__group.html#ga2ba06598e685f870cb3f410f27d75703">00218</a> <span class="preprocessor">#define USBCLK_SRC_OSC0         1       //!&lt; Use OSC0</span>
<a name="l00219"></a><a class="code" href="group__sysclk__group.html#ga5fee2b76449663f9d6c8f7bb34782e77">00219</a> <span class="preprocessor"></span><span class="preprocessor">#define USBCLK_SRC_OSC1         2       //!&lt; Use OSC1</span>
<a name="l00220"></a><a class="code" href="group__sysclk__group.html#ga969e47c6c1f1d38fd2afaf96f6187296">00220</a> <span class="preprocessor"></span><span class="preprocessor">#define USBCLK_SRC_PLL0         3       //!&lt; Use PLL0</span>
<a name="l00221"></a><a class="code" href="group__sysclk__group.html#gae76666294ec5d1ca2bcfa28061cfae3f">00221</a> <span class="preprocessor"></span><span class="preprocessor">#define USBCLK_SRC_PLL1         4       //!&lt; Use PLL1</span>
<a name="l00222"></a>00222 <span class="preprocessor"></span>
<a name="l00223"></a>00223 
<a name="l00225"></a>00225 
<a name="l00226"></a>00226 
<a name="l00227"></a><a class="code" href="group__sysclk__group.html#ga9cbdb318d23dda372bf52dd9b4eb14f5">00227</a> <span class="preprocessor">#define SYSCLK_OCD              AVR32_OCD_CLK_CPU</span>
<a name="l00228"></a>00228 <span class="preprocessor"></span>
<a name="l00229"></a><a class="code" href="group__sysclk__group.html#ga619d74a2528721833b011475c6ea1b63">00229</a> <span class="preprocessor">#define SYSCLK_SYSTIMER         AVR32_CORE_CLK_CPU_COUNT</span>
<a name="l00230"></a>00230 <span class="preprocessor"></span>
<a name="l00231"></a>00231 
<a name="l00233"></a>00233 
<a name="l00234"></a>00234 
<a name="l00235"></a><a class="code" href="group__sysclk__group.html#ga86f02a49fa416cb9618274517c7b6a1b">00235</a> <span class="preprocessor">#define SYSCLK_SAU_HSB          (AVR32_SAU_CLK_HSB % 32)</span>
<a name="l00236"></a>00236 <span class="preprocessor"></span>
<a name="l00237"></a><a class="code" href="group__sysclk__group.html#ga31a0491a42ddf97870b3218d66921f55">00237</a> <span class="preprocessor">#define SYSCLK_PDCA_HSB         (AVR32_PDCA_CLK_HSB % 32)</span>
<a name="l00238"></a>00238 <span class="preprocessor"></span>
<a name="l00239"></a><a class="code" href="group__sysclk__group.html#gaeb124548e5e161dfa5f3675721da8a82">00239</a> <span class="preprocessor">#define SYSCLK_MDMA_HSB         (AVR32_MDMA_CLK_HSB % 32)</span>
<a name="l00240"></a>00240 <span class="preprocessor"></span>
<a name="l00241"></a><a class="code" href="group__sysclk__group.html#ga8853a36d0721737ccf4f7dfa2287c729">00241</a> <span class="preprocessor">#define SYSCLK_USBC_DATA        (AVR32_USBC_CLK_HSB % 32)</span>
<a name="l00242"></a>00242 <span class="preprocessor"></span>
<a name="l00243"></a><a class="code" href="group__sysclk__group.html#ga72bf629f809d2df6ef9877b25712ba76">00243</a> <span class="preprocessor">#define SYSCLK_CANIF_DATA       (AVR32_CANIF_CLK_HSB % 32)</span>
<a name="l00244"></a>00244 <span class="preprocessor"></span>
<a name="l00245"></a><a class="code" href="group__sysclk__group.html#gaa4659bfb4205b768f6846cbfcc2ec7dd">00245</a> <span class="preprocessor">#define SYSCLK_FLASHC_DATA      (AVR32_FLASHC_CLK_HSB % 32)</span>
<a name="l00246"></a>00246 <span class="preprocessor"></span>
<a name="l00247"></a><a class="code" href="group__sysclk__group.html#ga9e400e99e4e4b8f66b3a6d4c7b70611e">00247</a> <span class="preprocessor">#define SYSCLK_PBA_BRIDGE       (AVR32_HMATRIX_CLK_HSB_PBA_BRIDGE % 32)</span>
<a name="l00248"></a>00248 <span class="preprocessor"></span>
<a name="l00249"></a><a class="code" href="group__sysclk__group.html#gaafe37377751bd916833b911fb54de660">00249</a> <span class="preprocessor">#define SYSCLK_PBB_BRIDGE       (AVR32_HMATRIX_CLK_HSB_PBB_BRIDGE % 32)</span>
<a name="l00250"></a>00250 <span class="preprocessor"></span>
<a name="l00251"></a><a class="code" href="group__sysclk__group.html#ga94aa5b488b09dc743ddca6c884660873">00251</a> <span class="preprocessor">#define SYSCLK_PBC_BRIDGE       (AVR32_HMATRIX_CLK_HSB_PBC_BRIDGE % 32)</span>
<a name="l00252"></a>00252 <span class="preprocessor"></span>
<a name="l00253"></a><a class="code" href="group__sysclk__group.html#gaff6d7baf5d4926d22f50ca1bfb738424">00253</a> <span class="preprocessor">#define SYSCLK_HSB_RAM          (AVR32_RAM_CLK_HSB % 32)</span>
<a name="l00254"></a>00254 <span class="preprocessor"></span>
<a name="l00255"></a><a class="code" href="group__sysclk__group.html#ga30be147da40e89c8ea7fa6fd0ed30129">00255</a> <span class="preprocessor">#define SYSCLK_EBI              (AVR32_EBI_CLK_HSB % 32)</span>
<a name="l00256"></a>00256 <span class="preprocessor"></span>
<a name="l00257"></a><a class="code" href="group__sysclk__group.html#ga15c11d0c318f04ca3169fda32aea1bee">00257</a> <span class="preprocessor">#define SYSCLK_PEVC_HSB         (AVR32_PEVC_CLK_HSB % 32)</span>
<a name="l00258"></a>00258 <span class="preprocessor"></span>
<a name="l00259"></a>00259 
<a name="l00261"></a>00261 
<a name="l00262"></a>00262 
<a name="l00263"></a><a class="code" href="group__sysclk__group.html#ga14d03e228f6f595a55e1a76040b8f169">00263</a> <span class="preprocessor">#define SYSCLK_INTC             (AVR32_INTC_CLK_PBA % 32)</span>
<a name="l00264"></a>00264 <span class="preprocessor"></span>
<a name="l00265"></a><a class="code" href="group__sysclk__group.html#ga0f033dbcbfbd2fa9aadc748fb5c18165">00265</a> <span class="preprocessor">#define SYSCLK_PM               (AVR32_PM_CLK_PBA % 32)</span>
<a name="l00266"></a>00266 <span class="preprocessor"></span>
<a name="l00267"></a><a class="code" href="group__sysclk__group.html#ga49fca3345f07667c997b5ad46db6245b">00267</a> <span class="preprocessor">#define SYSCLK_SCIF             (AVR32_SCIF_CLK_PBA % 32)</span>
<a name="l00268"></a>00268 <span class="preprocessor"></span>
<a name="l00269"></a><a class="code" href="group__sysclk__group.html#ga6ad9b260e783734ef0e28bb7ac4284a7">00269</a> <span class="preprocessor">#define SYSCLK_AST              (AVR32_AST_CLK_PBA % 32)</span>
<a name="l00270"></a>00270 <span class="preprocessor"></span>
<a name="l00271"></a><a class="code" href="group__sysclk__group.html#gae1d87ae47bff0e2e4cab4b417cea4ab1">00271</a> <span class="preprocessor">#define SYSCLK_WDT              (AVR32_WDT_CLK_PBA % 32)</span>
<a name="l00272"></a>00272 <span class="preprocessor"></span>
<a name="l00273"></a><a class="code" href="group__sysclk__group.html#gaee7a1048c289fa9dd6abf99eaf64fc46">00273</a> <span class="preprocessor">#define SYSCLK_EIC              (AVR32_EIC_CLK_PBA % 32)</span>
<a name="l00274"></a>00274 <span class="preprocessor"></span>
<a name="l00275"></a><a class="code" href="group__sysclk__group.html#ga0bd4c7581ed295f5202efa0631dfe1aa">00275</a> <span class="preprocessor">#define SYSCLK_FREQM            (AVR32_FREQM_CLK_PBA % 32)</span>
<a name="l00276"></a>00276 <span class="preprocessor"></span>
<a name="l00277"></a><a class="code" href="group__sysclk__group.html#gaafd65ced01805e6f5dfbd3b08e9aa02c">00277</a> <span class="preprocessor">#define SYSCLK_GPIO             (AVR32_GPIO_CLK_PBA % 32)</span>
<a name="l00278"></a>00278 <span class="preprocessor"></span>
<a name="l00279"></a><a class="code" href="group__sysclk__group.html#gaeeea970aa1d68f0726f6ac7b19882491">00279</a> <span class="preprocessor">#define SYSCLK_USART0           (AVR32_USART0_CLK_PBA % 32)</span>
<a name="l00280"></a>00280 <span class="preprocessor"></span>
<a name="l00281"></a><a class="code" href="group__sysclk__group.html#gae2bb545878e7dc4040c1b1e9bab34cdd">00281</a> <span class="preprocessor">#define SYSCLK_USART2           (AVR32_USART2_CLK_PBA % 32)</span>
<a name="l00282"></a>00282 <span class="preprocessor"></span>
<a name="l00283"></a><a class="code" href="group__sysclk__group.html#ga749a1c474f6bcdfb0c71e76d88371572">00283</a> <span class="preprocessor">#define SYSCLK_USART3           (AVR32_USART3_CLK_PBA % 32)</span>
<a name="l00284"></a>00284 <span class="preprocessor"></span>
<a name="l00285"></a><a class="code" href="group__sysclk__group.html#ga2981d1f5ff381253d3ca94c260bbba01">00285</a> <span class="preprocessor">#define SYSCLK_SPI1             (AVR32_SPI1_CLK_PBA % 32)</span>
<a name="l00286"></a>00286 <span class="preprocessor"></span>
<a name="l00287"></a><a class="code" href="group__sysclk__group.html#ga8c2db97d4e5879b8e79271ad4317965c">00287</a> <span class="preprocessor">#define SYSCLK_TWIM0            (AVR32_TWIM0_CLK_PBA % 32)</span>
<a name="l00288"></a>00288 <span class="preprocessor"></span>
<a name="l00289"></a><a class="code" href="group__sysclk__group.html#gaa6b40c9fda3fc4cf86201bf5d35c60e4">00289</a> <span class="preprocessor">#define SYSCLK_TWIM1            (AVR32_TWIM1_CLK_PBA % 32)</span>
<a name="l00290"></a>00290 <span class="preprocessor"></span>
<a name="l00291"></a><a class="code" href="group__sysclk__group.html#gaacb0f0e01d42f813394a6dc51171d0f1">00291</a> <span class="preprocessor">#define SYSCLK_TWIS0            (AVR32_TWIS0_CLK_PBA % 32)</span>
<a name="l00292"></a>00292 <span class="preprocessor"></span>
<a name="l00293"></a><a class="code" href="group__sysclk__group.html#ga8949d9bb62e29e020979d3d428d8fb53">00293</a> <span class="preprocessor">#define SYSCLK_TWIS1            (AVR32_TWIS1_CLK_PBA % 32)</span>
<a name="l00294"></a>00294 <span class="preprocessor"></span>
<a name="l00295"></a><a class="code" href="group__sysclk__group.html#gaba7d5c176ee1112b9f590ac775615e36">00295</a> <span class="preprocessor">#define SYSCLK_PWM              (AVR32_PWM_CLK_PBA % 32)</span>
<a name="l00296"></a>00296 <span class="preprocessor"></span>
<a name="l00297"></a><a class="code" href="group__sysclk__group.html#gab8b5a16f6564fc83a5627c61468a635a">00297</a> <span class="preprocessor">#define SYSCLK_QDEC0            (AVR32_QDEC0_CLK_PBA % 32)</span>
<a name="l00298"></a>00298 <span class="preprocessor"></span>
<a name="l00299"></a><a class="code" href="group__sysclk__group.html#ga82dd53b7213f5e14889c11d00e9172e8">00299</a> <span class="preprocessor">#define SYSCLK_QDEC1            (AVR32_QDEC1_CLK_PBA % 32)</span>
<a name="l00300"></a>00300 <span class="preprocessor"></span>
<a name="l00301"></a><a class="code" href="group__sysclk__group.html#ga03be785696a3e76b1b3c6ea6104ac630">00301</a> <span class="preprocessor">#define SYSCLK_TC1              (AVR32_TC1_CLK_PBA % 32)</span>
<a name="l00302"></a>00302 <span class="preprocessor"></span>
<a name="l00303"></a><a class="code" href="group__sysclk__group.html#ga399953bbca8665cff37fd74a54196281">00303</a> <span class="preprocessor">#define SYSCLK_PEVC_REGS        (AVR32_PEVC_CLK_PBA % 32)</span>
<a name="l00304"></a>00304 <span class="preprocessor"></span>
<a name="l00305"></a><a class="code" href="group__sysclk__group.html#ga3d96f4df476b374cae0653bb97b6afa9">00305</a> <span class="preprocessor">#define SYSCLK_ACIFA0           (AVR32_ACIFA0_CLK_PBA % 32)</span>
<a name="l00306"></a>00306 <span class="preprocessor"></span>
<a name="l00307"></a><a class="code" href="group__sysclk__group.html#gae446ad78f0e97d6284514f1f37b77b8e">00307</a> <span class="preprocessor">#define SYSCLK_ACIFA1           (AVR32_ACIFA1_CLK_PBA % 32)</span>
<a name="l00308"></a>00308 <span class="preprocessor"></span>
<a name="l00309"></a><a class="code" href="group__sysclk__group.html#gaca3098d4d705c823acb5a2787a658b2f">00309</a> <span class="preprocessor">#define SYSCLK_DACIFB0          (AVR32_DACIFB0_CLK_PBA % 32)</span>
<a name="l00310"></a>00310 <span class="preprocessor"></span>
<a name="l00311"></a><a class="code" href="group__sysclk__group.html#gabafc3d95b374fd0543a080132c6a123f">00311</a> <span class="preprocessor">#define SYSCLK_DACIFB1          (AVR32_DACIFB1_CLK_PBA % 32)</span>
<a name="l00312"></a>00312 <span class="preprocessor"></span>
<a name="l00313"></a><a class="code" href="group__sysclk__group.html#ga70d3d2ecde2ee79e6cdf0ddf62c5ce14">00313</a> <span class="preprocessor">#define SYSCLK_AW               (AVR32_AW_CLK_PBA % 32)</span>
<a name="l00314"></a>00314 <span class="preprocessor"></span>
<a name="l00315"></a>00315 
<a name="l00317"></a>00317 
<a name="l00318"></a>00318 
<a name="l00319"></a><a class="code" href="group__sysclk__group.html#ga47b081ba5de90a8ea89b8a844e82c14a">00319</a> <span class="preprocessor">#define SYSCLK_FLASHC_REGS      (AVR32_FLASHC_CLK_PBB % 32)</span>
<a name="l00320"></a>00320 <span class="preprocessor"></span>
<a name="l00321"></a><a class="code" href="group__sysclk__group.html#ga1f50b29ea7a96a6595b6256118ec6a34">00321</a> <span class="preprocessor">#define SYSCLK_USBC_REGS        (AVR32_USBC_CLK_PBB % 32)</span>
<a name="l00322"></a>00322 <span class="preprocessor"></span>
<a name="l00323"></a><a class="code" href="group__sysclk__group.html#ga766dce154a1fb38bb35e6e98cd51a9b1">00323</a> <span class="preprocessor">#define SYSCLK_HMATRIX          (AVR32_HMATRIX_CLK_PBB % 32)</span>
<a name="l00324"></a>00324 <span class="preprocessor"></span>
<a name="l00325"></a><a class="code" href="group__sysclk__group.html#gafe8483e2e78077a95841ccf52b2da1a5">00325</a> <span class="preprocessor">#define SYSCLK_SAU_REGS         (AVR32_SAU_CLK_PBB % 32)</span>
<a name="l00326"></a>00326 <span class="preprocessor"></span>
<a name="l00327"></a><a class="code" href="group__sysclk__group.html#ga8425ce428af87e00693efc695ac3b73e">00327</a> <span class="preprocessor">#define SYSCLK_SMC_REGS         (AVR32_SMC_CLK_PBB % 32)</span>
<a name="l00328"></a>00328 <span class="preprocessor"></span>
<a name="l00329"></a><a class="code" href="group__sysclk__group.html#ga386f643ce38c1c6721d07c559a70f365">00329</a> <span class="preprocessor">#define SYSCLK_SDRAMC_REGS      (AVR32_SDRAMC_CLK_PBB % 32)</span>
<a name="l00330"></a>00330 <span class="preprocessor"></span>
<a name="l00331"></a>00331 
<a name="l00333"></a>00333 
<a name="l00334"></a>00334 
<a name="l00335"></a><a class="code" href="group__sysclk__group.html#gac83d44e5be54c7b52b86deb4fc338516">00335</a> <span class="preprocessor">#define SYSCLK_PDCA_PB          (AVR32_PDCA_CLK_PBC % 32)</span>
<a name="l00336"></a>00336 <span class="preprocessor"></span>
<a name="l00337"></a><a class="code" href="group__sysclk__group.html#gabe01b7586526964dd55bc275e9d40f39">00337</a> <span class="preprocessor">#define SYSCLK_MDMA_REGS        (AVR32_MDMA_CLK_PBC % 32)</span>
<a name="l00338"></a>00338 <span class="preprocessor"></span>
<a name="l00339"></a><a class="code" href="group__sysclk__group.html#ga1acb0cc02d975a6d9d4e92e56a2438a0">00339</a> <span class="preprocessor">#define SYSCLK_USART1           (AVR32_USART1_CLK_PBC % 32)</span>
<a name="l00340"></a>00340 <span class="preprocessor"></span>
<a name="l00341"></a><a class="code" href="group__sysclk__group.html#ga77679d8f496ed32ec8c2476fc28ecf45">00341</a> <span class="preprocessor">#define SYSCLK_SPI0             (AVR32_SPI0_CLK_PBC % 32)</span>
<a name="l00342"></a>00342 <span class="preprocessor"></span>
<a name="l00343"></a><a class="code" href="group__sysclk__group.html#gadf592c60fdfb5213d813f9b5c753f0f7">00343</a> <span class="preprocessor">#define SYSCLK_CANIF_REGS       (AVR32_CANIF_CLK_PBC % 32)</span>
<a name="l00344"></a>00344 <span class="preprocessor"></span>
<a name="l00345"></a><a class="code" href="group__sysclk__group.html#gabe7aa477c7c5b3887df1d762a750b04a">00345</a> <span class="preprocessor">#define SYSCLK_TC0              (AVR32_TC0_CLK_PBC % 32)</span>
<a name="l00346"></a>00346 <span class="preprocessor"></span>
<a name="l00347"></a><a class="code" href="group__sysclk__group.html#ga6e40fd22e30fe8f7553443d88ee817aa">00347</a> <span class="preprocessor">#define SYSCLK_ADCIFA           (AVR32_ADCIFA_CLK_PBC % 32)</span>
<a name="l00348"></a>00348 <span class="preprocessor"></span>
<a name="l00349"></a>00349 
<a name="l00350"></a>00350 <span class="preprocessor">#ifndef __ASSEMBLY__</span>
<a name="l00351"></a>00351 <span class="preprocessor"></span>
<a name="l00352"></a>00352 <span class="preprocessor">#include &lt;avr32/io.h&gt;</span>
<a name="l00353"></a>00353 <span class="preprocessor">#include &lt;osc.h&gt;</span>
<a name="l00354"></a>00354 <span class="preprocessor">#include &lt;pll.h&gt;</span>
<a name="l00355"></a>00355 <span class="preprocessor">#include &lt;genclk.h&gt;</span>
<a name="l00356"></a>00356 
<a name="l00357"></a>00357 <span class="comment">// Use the slow clock (RCOSC) with no prescaling if config was empty.</span>
<a name="l00358"></a>00358 <span class="preprocessor">#ifndef CONFIG_SYSCLK_SOURCE</span>
<a name="l00359"></a>00359 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_SOURCE    SYSCLK_SRC_RCSYS</span>
<a name="l00360"></a>00360 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* CONFIG_SYSCLK_SOURCE */</span>
<a name="l00361"></a>00361 
<a name="l00371"></a>00371 <span class="preprocessor">#ifndef CONFIG_SYSCLK_CPU_DIV</span>
<a name="l00372"></a>00372 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_CPU_DIV   0</span>
<a name="l00373"></a>00373 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* CONFIG_SYSCLK_CPU_DIV */</span>
<a name="l00374"></a>00374 
<a name="l00386"></a>00386 <span class="preprocessor">#ifdef __DOXYGEN__</span>
<a name="l00387"></a>00387 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_INIT_HSBMASK</span>
<a name="l00388"></a>00388 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00389"></a>00389 <span class="preprocessor"></span>
<a name="l00399"></a>00399 <span class="preprocessor">#ifndef CONFIG_SYSCLK_PBA_DIV</span>
<a name="l00400"></a>00400 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_PBA_DIV   0</span>
<a name="l00401"></a>00401 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* CONFIG_SYSCLK_PBA_DIV */</span>
<a name="l00402"></a>00402 
<a name="l00412"></a>00412 <span class="preprocessor">#ifndef CONFIG_SYSCLK_PBB_DIV</span>
<a name="l00413"></a>00413 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_PBB_DIV   0</span>
<a name="l00414"></a>00414 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* CONFIG_SYSCLK_PBB_DIV */</span>
<a name="l00415"></a>00415 
<a name="l00425"></a>00425 <span class="preprocessor">#ifndef CONFIG_SYSCLK_PBC_DIV</span>
<a name="l00426"></a>00426 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_SYSCLK_PBC_DIV   0</span>
<a name="l00427"></a>00427 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* CONFIG_SYSCLK_PBC_DIV */</span>
<a name="l00428"></a>00428 
<a name="l00439"></a>00439 <span class="preprocessor">#ifdef __DOXYGEN__</span>
<a name="l00440"></a>00440 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_USBCLK_SOURCE</span>
<a name="l00441"></a>00441 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00442"></a>00442 <span class="preprocessor"></span>
<a name="l00454"></a>00454 <span class="preprocessor">#ifdef __DOXYGEN__</span>
<a name="l00455"></a>00455 <span class="preprocessor"></span><span class="preprocessor"># define CONFIG_USBCLK_DIV</span>
<a name="l00456"></a>00456 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00457"></a>00457 <span class="preprocessor"></span>
<a name="l00469"></a>00469 
<a name="l00480"></a>00480 <span class="preprocessor">#if (defined CONFIG_SYSCLK_DEFAULT_RETURNS_SLOW_OSC)</span>
<a name="l00481"></a>00481 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="keywordtype">bool</span> sysclk_initialized;
<a name="l00482"></a>00482 <span class="preprocessor">#endif</span>
<a name="l00483"></a>00483 <span class="preprocessor"></span><span class="keyword">static</span> <span class="keyword">inline</span> uint32_t sysclk_get_main_hz(<span class="keywordtype">void</span>)
<a name="l00484"></a>00484 {
<a name="l00485"></a>00485 <span class="preprocessor">#if (defined CONFIG_SYSCLK_DEFAULT_RETURNS_SLOW_OSC)</span>
<a name="l00486"></a>00486 <span class="preprocessor"></span>        <span class="keywordflow">if</span> (!sysclk_initialized ) {
<a name="l00487"></a>00487                 <span class="keywordflow">return</span> <a class="code" href="group__osc__group.html#gac6f0fa483cea89b90b34a7e29b5b8834" title="Nominal frequency of RCSYS in Hz.">OSC_RCSYS_NOMINAL_HZ</a>;
<a name="l00488"></a>00488         }
<a name="l00489"></a>00489 <span class="preprocessor">#endif</span>
<a name="l00490"></a>00490 <span class="preprocessor"></span>
<a name="l00491"></a>00491         <span class="keywordflow">switch</span> (<a class="code" href="group__sysclk__group.html#ga7bb6bbe88b7fb398ef8f0befe936e0e7" title="Initial/static main system clock source.">CONFIG_SYSCLK_SOURCE</a>) {
<a name="l00492"></a>00492         <span class="keywordflow">case</span> <a class="code" href="group__sysclk__group.html#ga95a749ec308ac07efb9521f2f56ad351" title="System RC oscillator.">SYSCLK_SRC_RCSYS</a>:
<a name="l00493"></a>00493                 <span class="keywordflow">return</span> <a class="code" href="group__osc__group.html#gac6f0fa483cea89b90b34a7e29b5b8834" title="Nominal frequency of RCSYS in Hz.">OSC_RCSYS_NOMINAL_HZ</a>;
<a name="l00494"></a>00494 
<a name="l00495"></a>00495 <span class="preprocessor">#ifdef BOARD_OSC0_HZ</span>
<a name="l00496"></a>00496 <span class="preprocessor"></span>        <span class="keywordflow">case</span> <a class="code" href="group__sysclk__group.html#ga40595c85aa33898ff3a6cfbd4f8ef7b9" title="Oscillator 0.">SYSCLK_SRC_OSC0</a>:
<a name="l00497"></a>00497                 <span class="keywordflow">return</span> <a class="code" href="group__osc__group.html#gab0552386a036eecb8cc8acf85e317e1e" title="Clock frequency of OSC0 in Hz.">BOARD_OSC0_HZ</a>;
<a name="l00498"></a>00498 <span class="preprocessor">#endif</span>
<a name="l00499"></a>00499 <span class="preprocessor"></span>
<a name="l00500"></a>00500 <span class="preprocessor">#ifdef BOARD_OSC1_HZ</span>
<a name="l00501"></a>00501 <span class="preprocessor"></span>        <span class="keywordflow">case</span> <a class="code" href="group__sysclk__group.html#ga9d44be291573208b5b1152f2b6ab1d3a" title="Oscillator 1.">SYSCLK_SRC_OSC1</a>:
<a name="l00502"></a>00502                 <span class="keywordflow">return</span> BOARD_OSC1_HZ;
<a name="l00503"></a>00503 <span class="preprocessor">#endif</span>
<a name="l00504"></a>00504 <span class="preprocessor"></span>
<a name="l00505"></a>00505 <span class="preprocessor">#ifdef CONFIG_PLL0_SOURCE</span>
<a name="l00506"></a>00506 <span class="preprocessor"></span>        <span class="keywordflow">case</span> <a class="code" href="group__sysclk__group.html#gacce44c311c87522d71fe51bf4cd37f58" title="Phase Locked Loop 0.">SYSCLK_SRC_PLL0</a>:
<a name="l00507"></a>00507                 <span class="keywordflow">return</span> <a class="code" href="group__pll__group.html#ga16c8db5e3f1a2c759a88371120579c4d" title="Get the default rate in Hz of pll_id.">pll_get_default_rate</a>(0);
<a name="l00508"></a>00508 <span class="preprocessor">#endif</span>
<a name="l00509"></a>00509 <span class="preprocessor"></span>
<a name="l00510"></a>00510 <span class="preprocessor">#ifdef CONFIG_PLL1_SOURCE</span>
<a name="l00511"></a>00511 <span class="preprocessor"></span>        <span class="keywordflow">case</span> <a class="code" href="group__sysclk__group.html#gaa46c965047bb81e94066d8df57cb719f" title="Phase Locked Loop 1.">SYSCLK_SRC_PLL1</a>:
<a name="l00512"></a>00512                 <span class="keywordflow">return</span> <a class="code" href="group__pll__group.html#ga16c8db5e3f1a2c759a88371120579c4d" title="Get the default rate in Hz of pll_id.">pll_get_default_rate</a>(1);
<a name="l00513"></a>00513 <span class="preprocessor">#endif</span>
<a name="l00514"></a>00514 <span class="preprocessor"></span>
<a name="l00515"></a>00515         <span class="keywordflow">case</span> <a class="code" href="group__sysclk__group.html#gaa3b782df811d75bf3cf9f4ba8c2266b0" title="8 MHz RC oscillator">SYSCLK_SRC_RC8M</a>:
<a name="l00516"></a>00516                 <span class="keywordflow">return</span> <a class="code" href="group__osc__group.html#ga29780a3cc29d5015d64e6e359003027c" title="Nominal frequency of RC8M in Hz.">OSC_RC8M_NOMINAL_HZ</a>;
<a name="l00517"></a>00517 
<a name="l00518"></a>00518         <span class="keywordflow">default</span>:
<a name="l00519"></a>00519                 <span class="comment">/* unhandled_case(CONFIG_SYSCLK_SOURCE); */</span>
<a name="l00520"></a>00520                 <span class="keywordflow">return</span> 0;
<a name="l00521"></a>00521         }
<a name="l00522"></a>00522 }
<a name="l00523"></a>00523 
<a name="l00535"></a>00535 <span class="keyword">static</span> <span class="keyword">inline</span> uint32_t sysclk_get_cpu_hz(<span class="keywordtype">void</span>)
<a name="l00536"></a>00536 {
<a name="l00537"></a>00537         <span class="keywordflow">return</span> sysclk_get_main_hz() &gt;&gt; <a class="code" href="group__sysclk__group.html#gaf8bcf7e1ee2ebd2829ebc31be507c6da" title="Initial/static CPU/HSB/PBB clock divider (log2)">CONFIG_SYSCLK_CPU_DIV</a>;
<a name="l00538"></a>00538 }
<a name="l00539"></a>00539 
<a name="l00545"></a>00545 <span class="keyword">static</span> <span class="keyword">inline</span> uint32_t sysclk_get_hsb_hz(<span class="keywordtype">void</span>)
<a name="l00546"></a>00546 {
<a name="l00547"></a>00547         <span class="keywordflow">return</span> sysclk_get_main_hz() &gt;&gt; <a class="code" href="group__sysclk__group.html#gaf8bcf7e1ee2ebd2829ebc31be507c6da" title="Initial/static CPU/HSB/PBB clock divider (log2)">CONFIG_SYSCLK_CPU_DIV</a>;
<a name="l00548"></a>00548 }
<a name="l00549"></a>00549 
<a name="l00555"></a>00555 <span class="keyword">static</span> <span class="keyword">inline</span> uint32_t sysclk_get_pba_hz(<span class="keywordtype">void</span>)
<a name="l00556"></a>00556 {
<a name="l00557"></a>00557         <span class="keywordflow">return</span> sysclk_get_main_hz() &gt;&gt; <a class="code" href="group__sysclk__group.html#gaa952d8094a06be420e244e68286c2dbf" title="Initial/static PBA clock divider (log2)">CONFIG_SYSCLK_PBA_DIV</a>;
<a name="l00558"></a>00558 }
<a name="l00559"></a>00559 
<a name="l00565"></a>00565 <span class="keyword">static</span> <span class="keyword">inline</span> uint32_t sysclk_get_pbb_hz(<span class="keywordtype">void</span>)
<a name="l00566"></a>00566 {
<a name="l00567"></a>00567         <span class="keywordflow">return</span> sysclk_get_main_hz() &gt;&gt; <a class="code" href="group__sysclk__group.html#gaf8bcf7e1ee2ebd2829ebc31be507c6da" title="Initial/static CPU/HSB/PBB clock divider (log2)">CONFIG_SYSCLK_CPU_DIV</a>;
<a name="l00568"></a>00568 }
<a name="l00569"></a>00569 
<a name="l00575"></a>00575 <span class="keyword">static</span> <span class="keyword">inline</span> uint32_t sysclk_get_pbc_hz(<span class="keywordtype">void</span>)
<a name="l00576"></a>00576 {
<a name="l00577"></a>00577         <span class="keywordflow">return</span> sysclk_get_main_hz() &gt;&gt; <a class="code" href="group__sysclk__group.html#gaa31e8248ac7b461b19f7ec827674d16c" title="Initial/static PBC clock divider (log2)">CONFIG_SYSCLK_PBC_DIV</a>;
<a name="l00578"></a>00578 }
<a name="l00579"></a>00579 
<a name="l00588"></a>00588 <span class="keyword">static</span> <span class="keyword">inline</span> uint32_t sysclk_get_peripheral_bus_hz(<span class="keyword">const</span> <span class="keyword">volatile</span> <span class="keywordtype">void</span> *module)
<a name="l00589"></a>00589 {
<a name="l00590"></a>00590         <span class="comment">/* Fallthroughs intended for modules sharing the same peripheral bus. */</span>
<a name="l00591"></a>00591         <span class="keywordflow">switch</span> ((uintptr_t)module) {
<a name="l00592"></a>00592         <span class="keywordflow">case</span> AVR32_INTC_ADDRESS:
<a name="l00593"></a>00593         <span class="keywordflow">case</span> AVR32_PM_ADDRESS:
<a name="l00594"></a>00594         <span class="keywordflow">case</span> AVR32_SCIF_ADDRESS:
<a name="l00595"></a>00595         <span class="keywordflow">case</span> AVR32_AST_ADDRESS:
<a name="l00596"></a>00596         <span class="keywordflow">case</span> AVR32_WDT_ADDRESS:
<a name="l00597"></a>00597         <span class="keywordflow">case</span> AVR32_EIC_ADDRESS:
<a name="l00598"></a>00598         <span class="keywordflow">case</span> AVR32_FREQM_ADDRESS:
<a name="l00599"></a>00599         <span class="keywordflow">case</span> AVR32_GPIO_ADDRESS:
<a name="l00600"></a>00600         <span class="keywordflow">case</span> AVR32_USART0_ADDRESS:
<a name="l00601"></a>00601         <span class="keywordflow">case</span> AVR32_USART2_ADDRESS:
<a name="l00602"></a>00602         <span class="keywordflow">case</span> AVR32_USART3_ADDRESS:
<a name="l00603"></a>00603 <span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l00604"></a>00604 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_SPI1_ADDRESS:
<a name="l00605"></a>00605 <span class="preprocessor">#endif</span>
<a name="l00606"></a>00606 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_TWIM0_ADDRESS:
<a name="l00607"></a>00607         <span class="keywordflow">case</span> AVR32_TWIM1_ADDRESS:
<a name="l00608"></a>00608         <span class="keywordflow">case</span> AVR32_TWIS0_ADDRESS:
<a name="l00609"></a>00609         <span class="keywordflow">case</span> AVR32_TWIS1_ADDRESS:
<a name="l00610"></a>00610         <span class="keywordflow">case</span> AVR32_PWM_ADDRESS:
<a name="l00611"></a>00611         <span class="keywordflow">case</span> AVR32_QDEC0_ADDRESS:
<a name="l00612"></a>00612 <span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l00613"></a>00613 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_QDEC1_ADDRESS:
<a name="l00614"></a>00614 <span class="preprocessor">#endif</span>
<a name="l00615"></a>00615 <span class="preprocessor"></span><span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l00616"></a>00616 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_TC1_ADDRESS:
<a name="l00617"></a>00617 <span class="preprocessor">#endif</span>
<a name="l00618"></a>00618 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_PEVC_ADDRESS:
<a name="l00619"></a>00619         <span class="keywordflow">case</span> AVR32_ACIFA0_ADDRESS:
<a name="l00620"></a>00620 <span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l00621"></a>00621 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_ACIFA1_ADDRESS:
<a name="l00622"></a>00622 <span class="preprocessor">#endif</span>
<a name="l00623"></a>00623 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_DACIFB0_ADDRESS:
<a name="l00624"></a>00624 <span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l00625"></a>00625 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_DACIFB1_ADDRESS:
<a name="l00626"></a>00626 <span class="preprocessor">#endif</span>
<a name="l00627"></a>00627 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_AW_ADDRESS:
<a name="l00628"></a>00628                 <span class="keywordflow">return</span> sysclk_get_pba_hz();
<a name="l00629"></a>00629 
<a name="l00630"></a>00630         <span class="keywordflow">case</span> AVR32_FLASHC_ADDRESS:
<a name="l00631"></a>00631         <span class="keywordflow">case</span> AVR32_USBC_ADDRESS:
<a name="l00632"></a>00632         <span class="keywordflow">case</span> AVR32_HMATRIXB_ADDRESS:
<a name="l00633"></a>00633         <span class="keywordflow">case</span> AVR32_SAU_ADDRESS:
<a name="l00634"></a>00634 <span class="preprocessor">#if defined(AVR32_SMC_ADDRESS)</span>
<a name="l00635"></a>00635 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_SMC_ADDRESS:
<a name="l00636"></a>00636 <span class="preprocessor">#endif</span>
<a name="l00637"></a>00637 <span class="preprocessor"></span><span class="preprocessor">#if defined(AVR32_SDRAMC_ADDRESS)</span>
<a name="l00638"></a>00638 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_SDRAMC_ADDRESS:
<a name="l00639"></a>00639 <span class="preprocessor">#endif</span>
<a name="l00640"></a>00640 <span class="preprocessor"></span>                <span class="keywordflow">return</span> sysclk_get_pbb_hz();
<a name="l00641"></a>00641 
<a name="l00642"></a>00642         <span class="keywordflow">case</span> AVR32_PDCA_ADDRESS:
<a name="l00643"></a>00643         <span class="keywordflow">case</span> AVR32_MDMA_ADDRESS:
<a name="l00644"></a>00644         <span class="keywordflow">case</span> AVR32_USART1_ADDRESS:
<a name="l00645"></a>00645         <span class="keywordflow">case</span> AVR32_SPI0_ADDRESS:
<a name="l00646"></a>00646         <span class="keywordflow">case</span> AVR32_CANIF_ADDRESS:
<a name="l00647"></a>00647         <span class="keywordflow">case</span> AVR32_TC0_ADDRESS:
<a name="l00648"></a>00648         <span class="keywordflow">case</span> AVR32_ADCIFA_ADDRESS:
<a name="l00649"></a>00649                 <span class="keywordflow">return</span> sysclk_get_pbc_hz();
<a name="l00650"></a>00650 
<a name="l00651"></a>00651         <span class="keywordflow">default</span>:
<a name="l00652"></a>00652                 Assert(<span class="keyword">false</span>);
<a name="l00653"></a>00653                 <span class="keywordflow">return</span> 0;
<a name="l00654"></a>00654         }
<a name="l00655"></a>00655 }
<a name="l00656"></a>00656 
<a name="l00658"></a>00658 
<a name="l00659"></a>00659 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="group__sysclk__group.html#ga74da4af4f93582fe3dd33dd75596cdf4">sysclk_priv_enable_module</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> bus_id,
<a name="l00660"></a>00660                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> module_index);
<a name="l00661"></a>00661 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="group__sysclk__group.html#ga9d3035baba081035de71adb2dd059ce7">sysclk_priv_disable_module</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> bus_id,
<a name="l00662"></a>00662                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> module_index);
<a name="l00663"></a>00663 
<a name="l00665"></a>00665 
<a name="l00666"></a>00666 
<a name="l00671"></a>00671 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> sysclk_enable_cpu_module(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index)
<a name="l00672"></a>00672 {
<a name="l00673"></a>00673         <a class="code" href="group__sysclk__group.html#ga74da4af4f93582fe3dd33dd75596cdf4">sysclk_priv_enable_module</a>(AVR32_PM_CLK_GRP_CPU, index);
<a name="l00674"></a>00674 }
<a name="l00675"></a>00675 
<a name="l00680"></a>00680 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> sysclk_disable_cpu_module(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index)
<a name="l00681"></a>00681 {
<a name="l00682"></a>00682         <a class="code" href="group__sysclk__group.html#ga9d3035baba081035de71adb2dd059ce7">sysclk_priv_disable_module</a>(AVR32_PM_CLK_GRP_CPU, index);
<a name="l00683"></a>00683 }
<a name="l00684"></a>00684 
<a name="l00689"></a>00689 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> sysclk_enable_hsb_module(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index)
<a name="l00690"></a>00690 {
<a name="l00691"></a>00691         <a class="code" href="group__sysclk__group.html#ga74da4af4f93582fe3dd33dd75596cdf4">sysclk_priv_enable_module</a>(AVR32_PM_CLK_GRP_HSB, index);
<a name="l00692"></a>00692 }
<a name="l00693"></a>00693 
<a name="l00698"></a>00698 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> sysclk_disable_hsb_module(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index)
<a name="l00699"></a>00699 {
<a name="l00700"></a>00700         <a class="code" href="group__sysclk__group.html#ga9d3035baba081035de71adb2dd059ce7">sysclk_priv_disable_module</a>(AVR32_PM_CLK_GRP_HSB, index);
<a name="l00701"></a>00701 }
<a name="l00702"></a>00702 
<a name="l00707"></a>00707 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> sysclk_enable_pba_module(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index)
<a name="l00708"></a>00708 {
<a name="l00709"></a>00709         <a class="code" href="group__sysclk__group.html#ga74da4af4f93582fe3dd33dd75596cdf4">sysclk_priv_enable_module</a>(AVR32_PM_CLK_GRP_PBA, index);
<a name="l00710"></a>00710 }
<a name="l00711"></a>00711 
<a name="l00716"></a>00716 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> sysclk_disable_pba_module(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index)
<a name="l00717"></a>00717 {
<a name="l00718"></a>00718         <a class="code" href="group__sysclk__group.html#ga9d3035baba081035de71adb2dd059ce7">sysclk_priv_disable_module</a>(AVR32_PM_CLK_GRP_PBA, index);
<a name="l00719"></a>00719 }
<a name="l00720"></a>00720 
<a name="l00725"></a>00725 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> sysclk_enable_pbb_module(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index)
<a name="l00726"></a>00726 {
<a name="l00727"></a>00727         <a class="code" href="group__sysclk__group.html#ga74da4af4f93582fe3dd33dd75596cdf4">sysclk_priv_enable_module</a>(AVR32_PM_CLK_GRP_PBB, index);
<a name="l00728"></a>00728 }
<a name="l00729"></a>00729 
<a name="l00734"></a>00734 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> sysclk_disable_pbb_module(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index)
<a name="l00735"></a>00735 {
<a name="l00736"></a>00736         <a class="code" href="group__sysclk__group.html#ga9d3035baba081035de71adb2dd059ce7">sysclk_priv_disable_module</a>(AVR32_PM_CLK_GRP_PBB, index);
<a name="l00737"></a>00737 }
<a name="l00738"></a>00738 
<a name="l00743"></a>00743 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> sysclk_enable_pbc_module(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index)
<a name="l00744"></a>00744 {
<a name="l00745"></a>00745         <a class="code" href="group__sysclk__group.html#ga74da4af4f93582fe3dd33dd75596cdf4">sysclk_priv_enable_module</a>(AVR32_PM_CLK_GRP_PBC, index);
<a name="l00746"></a>00746 }
<a name="l00747"></a>00747 
<a name="l00752"></a>00752 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> sysclk_disable_pbc_module(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index)
<a name="l00753"></a>00753 {
<a name="l00754"></a>00754         <a class="code" href="group__sysclk__group.html#ga9d3035baba081035de71adb2dd059ce7">sysclk_priv_disable_module</a>(AVR32_PM_CLK_GRP_PBC, index);
<a name="l00755"></a>00755 }
<a name="l00756"></a>00756 
<a name="l00765"></a>00765 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> sysclk_enable_peripheral_clock(<span class="keyword">const</span> <span class="keyword">volatile</span> <span class="keywordtype">void</span> *module)
<a name="l00766"></a>00766 {
<a name="l00767"></a>00767         <span class="keywordflow">switch</span> ((uintptr_t)module) {
<a name="l00768"></a>00768         <span class="keywordflow">case</span> AVR32_INTC_ADDRESS:
<a name="l00769"></a>00769                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#ga14d03e228f6f595a55e1a76040b8f169" title="Internal interrupt controller.">SYSCLK_INTC</a>);
<a name="l00770"></a>00770                 <span class="keywordflow">break</span>;
<a name="l00771"></a>00771 
<a name="l00772"></a>00772         <span class="keywordflow">case</span> AVR32_PM_ADDRESS:
<a name="l00773"></a>00773                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#ga0f033dbcbfbd2fa9aadc748fb5c18165" title="PM/RTC/EIM configuration.">SYSCLK_PM</a>);
<a name="l00774"></a>00774                 <span class="keywordflow">break</span>;
<a name="l00775"></a>00775 
<a name="l00776"></a>00776         <span class="keywordflow">case</span> AVR32_SCIF_ADDRESS:
<a name="l00777"></a>00777                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#ga49fca3345f07667c997b5ad46db6245b" title="System Control Interface.">SYSCLK_SCIF</a>);
<a name="l00778"></a>00778                 <span class="keywordflow">break</span>;
<a name="l00779"></a>00779 
<a name="l00780"></a>00780         <span class="keywordflow">case</span> AVR32_AST_ADDRESS:
<a name="l00781"></a>00781                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#ga6ad9b260e783734ef0e28bb7ac4284a7" title="Asynchronous Timer.">SYSCLK_AST</a>);
<a name="l00782"></a>00782                 <span class="keywordflow">break</span>;
<a name="l00783"></a>00783 
<a name="l00784"></a>00784         <span class="keywordflow">case</span> AVR32_WDT_ADDRESS:
<a name="l00785"></a>00785                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#gae1d87ae47bff0e2e4cab4b417cea4ab1" title="Watchdog Timer.">SYSCLK_WDT</a>);
<a name="l00786"></a>00786                 <span class="keywordflow">break</span>;
<a name="l00787"></a>00787 
<a name="l00788"></a>00788         <span class="keywordflow">case</span> AVR32_EIC_ADDRESS:
<a name="l00789"></a>00789                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#gaee7a1048c289fa9dd6abf99eaf64fc46" title="External Interrupt Controller.">SYSCLK_EIC</a>);
<a name="l00790"></a>00790                 <span class="keywordflow">break</span>;
<a name="l00791"></a>00791 
<a name="l00792"></a>00792         <span class="keywordflow">case</span> AVR32_FREQM_ADDRESS:
<a name="l00793"></a>00793                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#ga0bd4c7581ed295f5202efa0631dfe1aa" title="Frequency Meter.">SYSCLK_FREQM</a>);
<a name="l00794"></a>00794                 <span class="keywordflow">break</span>;
<a name="l00795"></a>00795 
<a name="l00796"></a>00796         <span class="keywordflow">case</span> AVR32_GPIO_ADDRESS:
<a name="l00797"></a>00797                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#gaafd65ced01805e6f5dfbd3b08e9aa02c" title="General-Purpose I/O.">SYSCLK_GPIO</a>);
<a name="l00798"></a>00798                 <span class="keywordflow">break</span>;
<a name="l00799"></a>00799 
<a name="l00800"></a>00800         <span class="keywordflow">case</span> AVR32_USART0_ADDRESS:
<a name="l00801"></a>00801                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#gaeeea970aa1d68f0726f6ac7b19882491" title="USART 0.">SYSCLK_USART0</a>);
<a name="l00802"></a>00802                 <span class="keywordflow">break</span>;
<a name="l00803"></a>00803 
<a name="l00804"></a>00804         <span class="keywordflow">case</span> AVR32_USART2_ADDRESS:
<a name="l00805"></a>00805                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#gae2bb545878e7dc4040c1b1e9bab34cdd" title="USART 2.">SYSCLK_USART2</a>);
<a name="l00806"></a>00806                 <span class="keywordflow">break</span>;
<a name="l00807"></a>00807 
<a name="l00808"></a>00808         <span class="keywordflow">case</span> AVR32_USART3_ADDRESS:
<a name="l00809"></a>00809                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#gae2bb545878e7dc4040c1b1e9bab34cdd" title="USART 2.">SYSCLK_USART2</a>);
<a name="l00810"></a>00810                 <span class="keywordflow">break</span>;
<a name="l00811"></a>00811 <span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l00812"></a>00812 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_SPI1_ADDRESS:
<a name="l00813"></a>00813                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#ga2981d1f5ff381253d3ca94c260bbba01" title="SPI Controller 1.">SYSCLK_SPI1</a>);
<a name="l00814"></a>00814                 <span class="keywordflow">break</span>;
<a name="l00815"></a>00815 <span class="preprocessor">#endif</span>
<a name="l00816"></a>00816 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_TWIM0_ADDRESS:
<a name="l00817"></a>00817                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#ga8c2db97d4e5879b8e79271ad4317965c" title="TWI Master 0.">SYSCLK_TWIM0</a>);
<a name="l00818"></a>00818                 <span class="keywordflow">break</span>;
<a name="l00819"></a>00819 
<a name="l00820"></a>00820         <span class="keywordflow">case</span> AVR32_TWIM1_ADDRESS:
<a name="l00821"></a>00821                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#gaa6b40c9fda3fc4cf86201bf5d35c60e4" title="TWI Master 1.">SYSCLK_TWIM1</a>);
<a name="l00822"></a>00822                 <span class="keywordflow">break</span>;
<a name="l00823"></a>00823 
<a name="l00824"></a>00824         <span class="keywordflow">case</span> AVR32_TWIS0_ADDRESS:
<a name="l00825"></a>00825                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#gaacb0f0e01d42f813394a6dc51171d0f1" title="TWI Slave 0.">SYSCLK_TWIS0</a>);
<a name="l00826"></a>00826                 <span class="keywordflow">break</span>;
<a name="l00827"></a>00827 
<a name="l00828"></a>00828         <span class="keywordflow">case</span> AVR32_TWIS1_ADDRESS:
<a name="l00829"></a>00829                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#ga8949d9bb62e29e020979d3d428d8fb53" title="TWI Slave 1.">SYSCLK_TWIS1</a>);
<a name="l00830"></a>00830                 <span class="keywordflow">break</span>;
<a name="l00831"></a>00831 
<a name="l00832"></a>00832         <span class="keywordflow">case</span> AVR32_PWM_ADDRESS:
<a name="l00833"></a>00833                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#gaba7d5c176ee1112b9f590ac775615e36" title="Pulse Width Modulator.">SYSCLK_PWM</a>);
<a name="l00834"></a>00834                 <span class="keywordflow">break</span>;
<a name="l00835"></a>00835 
<a name="l00836"></a>00836         <span class="keywordflow">case</span> AVR32_QDEC0_ADDRESS:
<a name="l00837"></a>00837                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#gab8b5a16f6564fc83a5627c61468a635a" title="Quadrature Decoder 0.">SYSCLK_QDEC0</a>);
<a name="l00838"></a>00838                 <span class="keywordflow">break</span>;
<a name="l00839"></a>00839 <span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l00840"></a>00840 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_QDEC1_ADDRESS:
<a name="l00841"></a>00841                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#ga82dd53b7213f5e14889c11d00e9172e8" title="Quadrature Decoder 1.">SYSCLK_QDEC1</a>);
<a name="l00842"></a>00842                 <span class="keywordflow">break</span>;
<a name="l00843"></a>00843 <span class="preprocessor">#endif</span>
<a name="l00844"></a>00844 <span class="preprocessor"></span><span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l00845"></a>00845 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_TC1_ADDRESS:
<a name="l00846"></a>00846                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#ga03be785696a3e76b1b3c6ea6104ac630" title="Timer/Counter 1.">SYSCLK_TC1</a>);
<a name="l00847"></a>00847                 <span class="keywordflow">break</span>;
<a name="l00848"></a>00848 <span class="preprocessor">#endif</span>
<a name="l00849"></a>00849 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_PEVC_ADDRESS:
<a name="l00850"></a>00850                 sysclk_enable_hsb_module(<a class="code" href="group__sysclk__group.html#ga15c11d0c318f04ca3169fda32aea1bee" title="Peripheral Event Controller.">SYSCLK_PEVC_HSB</a>);
<a name="l00851"></a>00851                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#ga399953bbca8665cff37fd74a54196281" title="Peripheral Event Controller.">SYSCLK_PEVC_REGS</a>);
<a name="l00852"></a>00852                 <span class="keywordflow">break</span>;
<a name="l00853"></a>00853 
<a name="l00854"></a>00854         <span class="keywordflow">case</span> AVR32_ACIFA0_ADDRESS:
<a name="l00855"></a>00855                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#ga3d96f4df476b374cae0653bb97b6afa9" title="Analog Comparator 0.">SYSCLK_ACIFA0</a>);
<a name="l00856"></a>00856                 <span class="keywordflow">break</span>;
<a name="l00857"></a>00857 <span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l00858"></a>00858 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_ACIFA1_ADDRESS:
<a name="l00859"></a>00859                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#gae446ad78f0e97d6284514f1f37b77b8e" title="Analog Comparator 1.">SYSCLK_ACIFA1</a>);
<a name="l00860"></a>00860                 <span class="keywordflow">break</span>;
<a name="l00861"></a>00861 <span class="preprocessor">#endif</span>
<a name="l00862"></a>00862 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_DACIFB0_ADDRESS:
<a name="l00863"></a>00863                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#gaca3098d4d705c823acb5a2787a658b2f" title="D/A Converter 0.">SYSCLK_DACIFB0</a>);
<a name="l00864"></a>00864                 <span class="keywordflow">break</span>;
<a name="l00865"></a>00865 <span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l00866"></a>00866 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_DACIFB1_ADDRESS:
<a name="l00867"></a>00867                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#gabafc3d95b374fd0543a080132c6a123f" title="D/A Converter 1.">SYSCLK_DACIFB1</a>);
<a name="l00868"></a>00868                 <span class="keywordflow">break</span>;
<a name="l00869"></a>00869 <span class="preprocessor">#endif</span>
<a name="l00870"></a>00870 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_AW_ADDRESS:
<a name="l00871"></a>00871                 sysclk_enable_pba_module(<a class="code" href="group__sysclk__group.html#ga70d3d2ecde2ee79e6cdf0ddf62c5ce14" title="aWire UART">SYSCLK_AW</a>);
<a name="l00872"></a>00872                 <span class="keywordflow">break</span>;
<a name="l00873"></a>00873 
<a name="l00874"></a>00874         <span class="keywordflow">case</span> AVR32_FLASHC_ADDRESS:
<a name="l00875"></a>00875                 sysclk_enable_hsb_module(<a class="code" href="group__sysclk__group.html#gaa4659bfb4205b768f6846cbfcc2ec7dd" title="Flash data interface.">SYSCLK_FLASHC_DATA</a>);
<a name="l00876"></a>00876                 sysclk_enable_pbb_module(<a class="code" href="group__sysclk__group.html#ga47b081ba5de90a8ea89b8a844e82c14a" title="Flash Controller registers.">SYSCLK_FLASHC_REGS</a>);
<a name="l00877"></a>00877                 <span class="keywordflow">break</span>;
<a name="l00878"></a>00878 
<a name="l00879"></a>00879         <span class="keywordflow">case</span> AVR32_USBC_ADDRESS:
<a name="l00880"></a>00880                 sysclk_enable_hsb_module(<a class="code" href="group__sysclk__group.html#ga8853a36d0721737ccf4f7dfa2287c729" title="USBC DMA and FIFO interface.">SYSCLK_USBC_DATA</a>);
<a name="l00881"></a>00881                 sysclk_enable_pbb_module(<a class="code" href="group__sysclk__group.html#ga1f50b29ea7a96a6595b6256118ec6a34" title="USBB registers.">SYSCLK_USBC_REGS</a>);
<a name="l00882"></a>00882                 <span class="keywordflow">break</span>;
<a name="l00883"></a>00883 
<a name="l00884"></a>00884         <span class="keywordflow">case</span> AVR32_HMATRIXB_ADDRESS:
<a name="l00885"></a>00885                 sysclk_enable_pbb_module(<a class="code" href="group__sysclk__group.html#ga766dce154a1fb38bb35e6e98cd51a9b1" title="HSB Matrix configuration.">SYSCLK_HMATRIX</a>);
<a name="l00886"></a>00886                 <span class="keywordflow">break</span>;
<a name="l00887"></a>00887 
<a name="l00888"></a>00888         <span class="keywordflow">case</span> AVR32_SAU_ADDRESS:
<a name="l00889"></a>00889                 sysclk_enable_hsb_module(<a class="code" href="group__sysclk__group.html#ga86f02a49fa416cb9618274517c7b6a1b" title="Secure Access Unit HSB interface.">SYSCLK_SAU_HSB</a>);
<a name="l00890"></a>00890                 sysclk_enable_pbb_module(<a class="code" href="group__sysclk__group.html#gafe8483e2e78077a95841ccf52b2da1a5" title="Secure Access Unit register.">SYSCLK_SAU_REGS</a>);
<a name="l00891"></a>00891                 <span class="keywordflow">break</span>;
<a name="l00892"></a>00892 
<a name="l00893"></a>00893 <span class="preprocessor">#if defined(AVR32_SMC_ADDRESS)</span>
<a name="l00894"></a>00894 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_SMC_ADDRESS:
<a name="l00895"></a>00895                 sysclk_enable_pbb_module(<a class="code" href="group__sysclk__group.html#ga8425ce428af87e00693efc695ac3b73e" title="Static Memory Controller registers.">SYSCLK_SMC_REGS</a>);
<a name="l00896"></a>00896                 <span class="keywordflow">break</span>;
<a name="l00897"></a>00897 <span class="preprocessor">#endif</span>
<a name="l00898"></a>00898 <span class="preprocessor"></span>
<a name="l00899"></a>00899 <span class="preprocessor">#if defined(AVR32_SDRAMC_ADDRESS)</span>
<a name="l00900"></a>00900 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_SDRAMC_ADDRESS:
<a name="l00901"></a>00901                 sysclk_enable_pbb_module(<a class="code" href="group__sysclk__group.html#ga386f643ce38c1c6721d07c559a70f365" title="SDRAM Controller registers.">SYSCLK_SDRAMC_REGS</a>);
<a name="l00902"></a>00902                 <span class="keywordflow">break</span>;
<a name="l00903"></a>00903 <span class="preprocessor">#endif</span>
<a name="l00904"></a>00904 <span class="preprocessor"></span>
<a name="l00905"></a>00905         <span class="keywordflow">case</span> AVR32_PDCA_ADDRESS:
<a name="l00906"></a>00906                 sysclk_enable_hsb_module(<a class="code" href="group__sysclk__group.html#ga31a0491a42ddf97870b3218d66921f55" title="PDCA memory interface.">SYSCLK_PDCA_HSB</a>);
<a name="l00907"></a>00907                 sysclk_enable_pbc_module(<a class="code" href="group__sysclk__group.html#gac83d44e5be54c7b52b86deb4fc338516" title="PDCA peripheral bus interface.">SYSCLK_PDCA_PB</a>);
<a name="l00908"></a>00908                 <span class="keywordflow">break</span>;
<a name="l00909"></a>00909 
<a name="l00910"></a>00910         <span class="keywordflow">case</span> AVR32_MDMA_ADDRESS:
<a name="l00911"></a>00911                 sysclk_enable_pbc_module(<a class="code" href="group__sysclk__group.html#gabe01b7586526964dd55bc275e9d40f39" title="MDMA registers.">SYSCLK_MDMA_REGS</a>);
<a name="l00912"></a>00912                 <span class="keywordflow">break</span>;
<a name="l00913"></a>00913 
<a name="l00914"></a>00914         <span class="keywordflow">case</span> AVR32_USART1_ADDRESS:
<a name="l00915"></a>00915                 sysclk_enable_pbc_module(<a class="code" href="group__sysclk__group.html#ga1acb0cc02d975a6d9d4e92e56a2438a0" title="USART 1.">SYSCLK_USART1</a>);
<a name="l00916"></a>00916                 <span class="keywordflow">break</span>;
<a name="l00917"></a>00917 
<a name="l00918"></a>00918         <span class="keywordflow">case</span> AVR32_SPI0_ADDRESS:
<a name="l00919"></a>00919                 sysclk_enable_pbc_module(<a class="code" href="group__sysclk__group.html#ga77679d8f496ed32ec8c2476fc28ecf45" title="SPI Controller 0.">SYSCLK_SPI0</a>);
<a name="l00920"></a>00920                 <span class="keywordflow">break</span>;
<a name="l00921"></a>00921 
<a name="l00922"></a>00922         <span class="keywordflow">case</span> AVR32_CANIF_ADDRESS:
<a name="l00923"></a>00923                 sysclk_enable_hsb_module(<a class="code" href="group__sysclk__group.html#ga72bf629f809d2df6ef9877b25712ba76" title="CANIF DMA interface.">SYSCLK_CANIF_DATA</a>);
<a name="l00924"></a>00924                 sysclk_enable_pbc_module(<a class="code" href="group__sysclk__group.html#gadf592c60fdfb5213d813f9b5c753f0f7" title="CANIF registers.">SYSCLK_CANIF_REGS</a>);
<a name="l00925"></a>00925                 <span class="keywordflow">break</span>;
<a name="l00926"></a>00926 
<a name="l00927"></a>00927         <span class="keywordflow">case</span> AVR32_TC0_ADDRESS:
<a name="l00928"></a>00928                 sysclk_enable_pbc_module(<a class="code" href="group__sysclk__group.html#gabe7aa477c7c5b3887df1d762a750b04a" title="Timer/Counter 0.">SYSCLK_TC0</a>);
<a name="l00929"></a>00929                 <span class="keywordflow">break</span>;
<a name="l00930"></a>00930 
<a name="l00931"></a>00931         <span class="keywordflow">case</span> AVR32_ADCIFA_ADDRESS:
<a name="l00932"></a>00932                 sysclk_enable_pbc_module(<a class="code" href="group__sysclk__group.html#ga6e40fd22e30fe8f7553443d88ee817aa" title="A/D Converter.">SYSCLK_ADCIFA</a>);
<a name="l00933"></a>00933                 <span class="keywordflow">break</span>;
<a name="l00934"></a>00934 
<a name="l00935"></a>00935         <span class="keywordflow">default</span>:
<a name="l00936"></a>00936                 Assert(<span class="keyword">false</span>);
<a name="l00937"></a>00937                 <span class="keywordflow">return</span>;
<a name="l00938"></a>00938         }
<a name="l00939"></a>00939 }
<a name="l00940"></a>00940 
<a name="l00949"></a>00949 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> sysclk_disable_peripheral_clock(<span class="keyword">const</span> <span class="keyword">volatile</span> <span class="keywordtype">void</span> *module)
<a name="l00950"></a>00950 {
<a name="l00951"></a>00951         <span class="keywordflow">switch</span> ((uintptr_t)module) {
<a name="l00952"></a>00952         <span class="keywordflow">case</span> AVR32_INTC_ADDRESS:
<a name="l00953"></a>00953                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#ga14d03e228f6f595a55e1a76040b8f169" title="Internal interrupt controller.">SYSCLK_INTC</a>);
<a name="l00954"></a>00954                 <span class="keywordflow">break</span>;
<a name="l00955"></a>00955 
<a name="l00956"></a>00956         <span class="keywordflow">case</span> AVR32_PM_ADDRESS:
<a name="l00957"></a>00957                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#ga0f033dbcbfbd2fa9aadc748fb5c18165" title="PM/RTC/EIM configuration.">SYSCLK_PM</a>);
<a name="l00958"></a>00958                 <span class="keywordflow">break</span>;
<a name="l00959"></a>00959 
<a name="l00960"></a>00960         <span class="keywordflow">case</span> AVR32_SCIF_ADDRESS:
<a name="l00961"></a>00961                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#ga49fca3345f07667c997b5ad46db6245b" title="System Control Interface.">SYSCLK_SCIF</a>);
<a name="l00962"></a>00962                 <span class="keywordflow">break</span>;
<a name="l00963"></a>00963 
<a name="l00964"></a>00964         <span class="keywordflow">case</span> AVR32_AST_ADDRESS:
<a name="l00965"></a>00965                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#ga6ad9b260e783734ef0e28bb7ac4284a7" title="Asynchronous Timer.">SYSCLK_AST</a>);
<a name="l00966"></a>00966                 <span class="keywordflow">break</span>;
<a name="l00967"></a>00967 
<a name="l00968"></a>00968         <span class="keywordflow">case</span> AVR32_WDT_ADDRESS:
<a name="l00969"></a>00969                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#gae1d87ae47bff0e2e4cab4b417cea4ab1" title="Watchdog Timer.">SYSCLK_WDT</a>);
<a name="l00970"></a>00970                 <span class="keywordflow">break</span>;
<a name="l00971"></a>00971 
<a name="l00972"></a>00972         <span class="keywordflow">case</span> AVR32_EIC_ADDRESS:
<a name="l00973"></a>00973                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#gaee7a1048c289fa9dd6abf99eaf64fc46" title="External Interrupt Controller.">SYSCLK_EIC</a>);
<a name="l00974"></a>00974                 <span class="keywordflow">break</span>;
<a name="l00975"></a>00975 
<a name="l00976"></a>00976         <span class="keywordflow">case</span> AVR32_FREQM_ADDRESS:
<a name="l00977"></a>00977                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#ga0bd4c7581ed295f5202efa0631dfe1aa" title="Frequency Meter.">SYSCLK_FREQM</a>);
<a name="l00978"></a>00978                 <span class="keywordflow">break</span>;
<a name="l00979"></a>00979 
<a name="l00980"></a>00980         <span class="keywordflow">case</span> AVR32_GPIO_ADDRESS:
<a name="l00981"></a>00981                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#gaafd65ced01805e6f5dfbd3b08e9aa02c" title="General-Purpose I/O.">SYSCLK_GPIO</a>);
<a name="l00982"></a>00982                 <span class="keywordflow">break</span>;
<a name="l00983"></a>00983 
<a name="l00984"></a>00984         <span class="keywordflow">case</span> AVR32_USART0_ADDRESS:
<a name="l00985"></a>00985                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#gaeeea970aa1d68f0726f6ac7b19882491" title="USART 0.">SYSCLK_USART0</a>);
<a name="l00986"></a>00986                 <span class="keywordflow">break</span>;
<a name="l00987"></a>00987 
<a name="l00988"></a>00988         <span class="keywordflow">case</span> AVR32_USART2_ADDRESS:
<a name="l00989"></a>00989                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#gae2bb545878e7dc4040c1b1e9bab34cdd" title="USART 2.">SYSCLK_USART2</a>);
<a name="l00990"></a>00990                 <span class="keywordflow">break</span>;
<a name="l00991"></a>00991 
<a name="l00992"></a>00992         <span class="keywordflow">case</span> AVR32_USART3_ADDRESS:
<a name="l00993"></a>00993                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#gae2bb545878e7dc4040c1b1e9bab34cdd" title="USART 2.">SYSCLK_USART2</a>);
<a name="l00994"></a>00994                 <span class="keywordflow">break</span>;
<a name="l00995"></a>00995 <span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l00996"></a>00996 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_SPI1_ADDRESS:
<a name="l00997"></a>00997                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#ga2981d1f5ff381253d3ca94c260bbba01" title="SPI Controller 1.">SYSCLK_SPI1</a>);
<a name="l00998"></a>00998                 <span class="keywordflow">break</span>;
<a name="l00999"></a>00999 <span class="preprocessor">#endif</span>
<a name="l01000"></a>01000 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_TWIM0_ADDRESS:
<a name="l01001"></a>01001                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#ga8c2db97d4e5879b8e79271ad4317965c" title="TWI Master 0.">SYSCLK_TWIM0</a>);
<a name="l01002"></a>01002                 <span class="keywordflow">break</span>;
<a name="l01003"></a>01003 
<a name="l01004"></a>01004         <span class="keywordflow">case</span> AVR32_TWIM1_ADDRESS:
<a name="l01005"></a>01005                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#gaa6b40c9fda3fc4cf86201bf5d35c60e4" title="TWI Master 1.">SYSCLK_TWIM1</a>);
<a name="l01006"></a>01006                 <span class="keywordflow">break</span>;
<a name="l01007"></a>01007 
<a name="l01008"></a>01008         <span class="keywordflow">case</span> AVR32_TWIS0_ADDRESS:
<a name="l01009"></a>01009                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#gaacb0f0e01d42f813394a6dc51171d0f1" title="TWI Slave 0.">SYSCLK_TWIS0</a>);
<a name="l01010"></a>01010                 <span class="keywordflow">break</span>;
<a name="l01011"></a>01011 
<a name="l01012"></a>01012         <span class="keywordflow">case</span> AVR32_TWIS1_ADDRESS:
<a name="l01013"></a>01013                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#ga8949d9bb62e29e020979d3d428d8fb53" title="TWI Slave 1.">SYSCLK_TWIS1</a>);
<a name="l01014"></a>01014                 <span class="keywordflow">break</span>;
<a name="l01015"></a>01015 
<a name="l01016"></a>01016         <span class="keywordflow">case</span> AVR32_PWM_ADDRESS:
<a name="l01017"></a>01017                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#gaba7d5c176ee1112b9f590ac775615e36" title="Pulse Width Modulator.">SYSCLK_PWM</a>);
<a name="l01018"></a>01018                 <span class="keywordflow">break</span>;
<a name="l01019"></a>01019 
<a name="l01020"></a>01020         <span class="keywordflow">case</span> AVR32_QDEC0_ADDRESS:
<a name="l01021"></a>01021                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#gab8b5a16f6564fc83a5627c61468a635a" title="Quadrature Decoder 0.">SYSCLK_QDEC0</a>);
<a name="l01022"></a>01022                 <span class="keywordflow">break</span>;
<a name="l01023"></a>01023 <span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l01024"></a>01024 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_QDEC1_ADDRESS:
<a name="l01025"></a>01025                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#ga82dd53b7213f5e14889c11d00e9172e8" title="Quadrature Decoder 1.">SYSCLK_QDEC1</a>);
<a name="l01026"></a>01026                 <span class="keywordflow">break</span>;
<a name="l01027"></a>01027 <span class="preprocessor">#endif</span>
<a name="l01028"></a>01028 <span class="preprocessor"></span><span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l01029"></a>01029 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_TC1_ADDRESS:
<a name="l01030"></a>01030                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#ga03be785696a3e76b1b3c6ea6104ac630" title="Timer/Counter 1.">SYSCLK_TC1</a>);
<a name="l01031"></a>01031                 <span class="keywordflow">break</span>;
<a name="l01032"></a>01032 <span class="preprocessor">#endif</span>
<a name="l01033"></a>01033 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_PEVC_ADDRESS:
<a name="l01034"></a>01034                 sysclk_disable_hsb_module(<a class="code" href="group__sysclk__group.html#ga15c11d0c318f04ca3169fda32aea1bee" title="Peripheral Event Controller.">SYSCLK_PEVC_HSB</a>);
<a name="l01035"></a>01035                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#ga399953bbca8665cff37fd74a54196281" title="Peripheral Event Controller.">SYSCLK_PEVC_REGS</a>);
<a name="l01036"></a>01036                 <span class="keywordflow">break</span>;
<a name="l01037"></a>01037 
<a name="l01038"></a>01038         <span class="keywordflow">case</span> AVR32_ACIFA0_ADDRESS:
<a name="l01039"></a>01039                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#ga3d96f4df476b374cae0653bb97b6afa9" title="Analog Comparator 0.">SYSCLK_ACIFA0</a>);
<a name="l01040"></a>01040                 <span class="keywordflow">break</span>;
<a name="l01041"></a>01041 <span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l01042"></a>01042 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_ACIFA1_ADDRESS:
<a name="l01043"></a>01043                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#gae446ad78f0e97d6284514f1f37b77b8e" title="Analog Comparator 1.">SYSCLK_ACIFA1</a>);
<a name="l01044"></a>01044                 <span class="keywordflow">break</span>;
<a name="l01045"></a>01045 <span class="preprocessor">#endif</span>
<a name="l01046"></a>01046 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_DACIFB0_ADDRESS:
<a name="l01047"></a>01047                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#gaca3098d4d705c823acb5a2787a658b2f" title="D/A Converter 0.">SYSCLK_DACIFB0</a>);
<a name="l01048"></a>01048                 <span class="keywordflow">break</span>;
<a name="l01049"></a>01049 <span class="preprocessor">#if (UC3C0 || UC3C1)</span>
<a name="l01050"></a>01050 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_DACIFB1_ADDRESS:
<a name="l01051"></a>01051                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#gabafc3d95b374fd0543a080132c6a123f" title="D/A Converter 1.">SYSCLK_DACIFB1</a>);
<a name="l01052"></a>01052                 <span class="keywordflow">break</span>;
<a name="l01053"></a>01053 <span class="preprocessor">#endif</span>
<a name="l01054"></a>01054 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_AW_ADDRESS:
<a name="l01055"></a>01055                 sysclk_disable_pba_module(<a class="code" href="group__sysclk__group.html#ga70d3d2ecde2ee79e6cdf0ddf62c5ce14" title="aWire UART">SYSCLK_AW</a>);
<a name="l01056"></a>01056                 <span class="keywordflow">break</span>;
<a name="l01057"></a>01057 
<a name="l01058"></a>01058         <span class="keywordflow">case</span> AVR32_FLASHC_ADDRESS:
<a name="l01059"></a>01059                 sysclk_disable_hsb_module(<a class="code" href="group__sysclk__group.html#gaa4659bfb4205b768f6846cbfcc2ec7dd" title="Flash data interface.">SYSCLK_FLASHC_DATA</a>);
<a name="l01060"></a>01060                 sysclk_disable_pbb_module(<a class="code" href="group__sysclk__group.html#ga47b081ba5de90a8ea89b8a844e82c14a" title="Flash Controller registers.">SYSCLK_FLASHC_REGS</a>);
<a name="l01061"></a>01061                 <span class="keywordflow">break</span>;
<a name="l01062"></a>01062 
<a name="l01063"></a>01063         <span class="keywordflow">case</span> AVR32_USBC_ADDRESS:
<a name="l01064"></a>01064                 sysclk_disable_hsb_module(<a class="code" href="group__sysclk__group.html#ga8853a36d0721737ccf4f7dfa2287c729" title="USBC DMA and FIFO interface.">SYSCLK_USBC_DATA</a>);
<a name="l01065"></a>01065                 sysclk_disable_pbb_module(<a class="code" href="group__sysclk__group.html#ga1f50b29ea7a96a6595b6256118ec6a34" title="USBB registers.">SYSCLK_USBC_REGS</a>);
<a name="l01066"></a>01066                 <span class="keywordflow">break</span>;
<a name="l01067"></a>01067 
<a name="l01068"></a>01068         <span class="keywordflow">case</span> AVR32_HMATRIXB_ADDRESS:
<a name="l01069"></a>01069                 sysclk_disable_pbb_module(<a class="code" href="group__sysclk__group.html#ga766dce154a1fb38bb35e6e98cd51a9b1" title="HSB Matrix configuration.">SYSCLK_HMATRIX</a>);
<a name="l01070"></a>01070                 <span class="keywordflow">break</span>;
<a name="l01071"></a>01071 
<a name="l01072"></a>01072         <span class="keywordflow">case</span> AVR32_SAU_ADDRESS:
<a name="l01073"></a>01073                 sysclk_disable_hsb_module(<a class="code" href="group__sysclk__group.html#ga86f02a49fa416cb9618274517c7b6a1b" title="Secure Access Unit HSB interface.">SYSCLK_SAU_HSB</a>);
<a name="l01074"></a>01074                 sysclk_disable_pbb_module(<a class="code" href="group__sysclk__group.html#gafe8483e2e78077a95841ccf52b2da1a5" title="Secure Access Unit register.">SYSCLK_SAU_REGS</a>);
<a name="l01075"></a>01075                 <span class="keywordflow">break</span>;
<a name="l01076"></a>01076 
<a name="l01077"></a>01077 <span class="preprocessor">#if defined(AVR32_SMC_ADDRESS)</span>
<a name="l01078"></a>01078 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_SMC_ADDRESS:
<a name="l01079"></a>01079                 sysclk_disable_pbb_module(<a class="code" href="group__sysclk__group.html#ga8425ce428af87e00693efc695ac3b73e" title="Static Memory Controller registers.">SYSCLK_SMC_REGS</a>);
<a name="l01080"></a>01080                 <span class="keywordflow">break</span>;
<a name="l01081"></a>01081 <span class="preprocessor">#endif</span>
<a name="l01082"></a>01082 <span class="preprocessor"></span>
<a name="l01083"></a>01083 <span class="preprocessor">#if defined(AVR32_SDRAMC_ADDRESS)</span>
<a name="l01084"></a>01084 <span class="preprocessor"></span>        <span class="keywordflow">case</span> AVR32_SDRAMC_ADDRESS:
<a name="l01085"></a>01085                 sysclk_disable_pbb_module(<a class="code" href="group__sysclk__group.html#ga386f643ce38c1c6721d07c559a70f365" title="SDRAM Controller registers.">SYSCLK_SDRAMC_REGS</a>);
<a name="l01086"></a>01086                 <span class="keywordflow">break</span>;
<a name="l01087"></a>01087 <span class="preprocessor">#endif</span>
<a name="l01088"></a>01088 <span class="preprocessor"></span>
<a name="l01089"></a>01089         <span class="keywordflow">case</span> AVR32_PDCA_ADDRESS:
<a name="l01090"></a>01090                 sysclk_disable_hsb_module(<a class="code" href="group__sysclk__group.html#ga31a0491a42ddf97870b3218d66921f55" title="PDCA memory interface.">SYSCLK_PDCA_HSB</a>);
<a name="l01091"></a>01091                 sysclk_disable_pbc_module(<a class="code" href="group__sysclk__group.html#gac83d44e5be54c7b52b86deb4fc338516" title="PDCA peripheral bus interface.">SYSCLK_PDCA_PB</a>);
<a name="l01092"></a>01092                 <span class="keywordflow">break</span>;
<a name="l01093"></a>01093 
<a name="l01094"></a>01094         <span class="keywordflow">case</span> AVR32_MDMA_ADDRESS:
<a name="l01095"></a>01095                 sysclk_disable_pbc_module(<a class="code" href="group__sysclk__group.html#gabe01b7586526964dd55bc275e9d40f39" title="MDMA registers.">SYSCLK_MDMA_REGS</a>);
<a name="l01096"></a>01096                 <span class="keywordflow">break</span>;
<a name="l01097"></a>01097 
<a name="l01098"></a>01098         <span class="keywordflow">case</span> AVR32_USART1_ADDRESS:
<a name="l01099"></a>01099                 sysclk_disable_pbc_module(<a class="code" href="group__sysclk__group.html#ga1acb0cc02d975a6d9d4e92e56a2438a0" title="USART 1.">SYSCLK_USART1</a>);
<a name="l01100"></a>01100                 <span class="keywordflow">break</span>;
<a name="l01101"></a>01101 
<a name="l01102"></a>01102         <span class="keywordflow">case</span> AVR32_SPI0_ADDRESS:
<a name="l01103"></a>01103                 sysclk_disable_pbc_module(<a class="code" href="group__sysclk__group.html#ga77679d8f496ed32ec8c2476fc28ecf45" title="SPI Controller 0.">SYSCLK_SPI0</a>);
<a name="l01104"></a>01104                 <span class="keywordflow">break</span>;
<a name="l01105"></a>01105 
<a name="l01106"></a>01106         <span class="keywordflow">case</span> AVR32_CANIF_ADDRESS:
<a name="l01107"></a>01107                 sysclk_disable_hsb_module(<a class="code" href="group__sysclk__group.html#ga72bf629f809d2df6ef9877b25712ba76" title="CANIF DMA interface.">SYSCLK_CANIF_DATA</a>);
<a name="l01108"></a>01108                 sysclk_disable_pbc_module(<a class="code" href="group__sysclk__group.html#gadf592c60fdfb5213d813f9b5c753f0f7" title="CANIF registers.">SYSCLK_CANIF_REGS</a>);
<a name="l01109"></a>01109                 <span class="keywordflow">break</span>;
<a name="l01110"></a>01110 
<a name="l01111"></a>01111         <span class="keywordflow">case</span> AVR32_TC0_ADDRESS:
<a name="l01112"></a>01112                 sysclk_disable_pbc_module(<a class="code" href="group__sysclk__group.html#gabe7aa477c7c5b3887df1d762a750b04a" title="Timer/Counter 0.">SYSCLK_TC0</a>);
<a name="l01113"></a>01113                 <span class="keywordflow">break</span>;
<a name="l01114"></a>01114 
<a name="l01115"></a>01115         <span class="keywordflow">case</span> AVR32_ADCIFA_ADDRESS:
<a name="l01116"></a>01116                 sysclk_disable_pbc_module(<a class="code" href="group__sysclk__group.html#ga6e40fd22e30fe8f7553443d88ee817aa" title="A/D Converter.">SYSCLK_ADCIFA</a>);
<a name="l01117"></a>01117                 <span class="keywordflow">break</span>;
<a name="l01118"></a>01118 
<a name="l01119"></a>01119         <span class="keywordflow">default</span>:
<a name="l01120"></a>01120                 Assert(<span class="keyword">false</span>);
<a name="l01121"></a>01121                 <span class="keywordflow">return</span>;
<a name="l01122"></a>01122         }
<a name="l01123"></a>01123 }
<a name="l01124"></a>01124 
<a name="l01126"></a>01126 
<a name="l01128"></a>01128 
<a name="l01129"></a>01129 
<a name="l01130"></a>01130 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="group__sysclk__group.html#ga9e93d93c137135fee8a1a7102367042e" title="Set system clock prescaler configuration.">sysclk_set_prescalers</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> cpu_shift,
<a name="l01131"></a>01131                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pba_shift, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pbb_shift,
<a name="l01132"></a>01132                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pbc_shift);
<a name="l01133"></a>01133 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="group__sysclk__group.html#ga222a121dfaac21b0c0af9d4dcb39496c" title="Change the source of the main system clock.">sysclk_set_source</a>(uint_fast8_t src);
<a name="l01134"></a>01134 
<a name="l01136"></a>01136 
<a name="l01137"></a>01137 <span class="preprocessor">#if defined(CONFIG_USBCLK_SOURCE) || defined(__DOXYGEN__)</span>
<a name="l01138"></a>01138 <span class="preprocessor"></span>
<a name="l01143"></a>01143 <span class="preprocessor">#if CONFIG_USBCLK_SOURCE==USBCLK_SRC_OSC0</span>
<a name="l01144"></a>01144 <span class="preprocessor"></span><span class="preprocessor">#  define USBCLK_STARTUP_TIMEOUT    (OSC0_STARTUP_TIMEOUT*(1000000/AVR32_SCIF_RCOSC_FREQUENCY))</span>
<a name="l01145"></a>01145 <span class="preprocessor"></span><span class="preprocessor">#elif CONFIG_USBCLK_SOURCE==USBCLK_SRC_OSC1</span>
<a name="l01146"></a>01146 <span class="preprocessor"></span><span class="preprocessor">#  define USBCLK_STARTUP_TIMEOUT    (OSC1_STARTUP_TIMEOUT*(1000000/AVR32_SCIF_RCOSC_FREQUENCY))</span>
<a name="l01147"></a>01147 <span class="preprocessor"></span><span class="preprocessor">#elif CONFIG_USBCLK_SOURCE==USBCLK_SRC_PLL0</span>
<a name="l01148"></a>01148 <span class="preprocessor"></span><span class="preprocessor">#  if CONFIG_PLL0_SOURCE==PLL_SRC_OSC0</span>
<a name="l01149"></a>01149 <span class="preprocessor"></span><span class="preprocessor">#    define USBCLK_STARTUP_TIMEOUT    (OSC0_STARTUP_TIMEOUT*(1000000/AVR32_SCIF_RCOSC_FREQUENCY))</span>
<a name="l01150"></a>01150 <span class="preprocessor"></span><span class="preprocessor">#  elif CONFIG_PLL0_SOURCE==PLL_SRC_OSC1</span>
<a name="l01151"></a>01151 <span class="preprocessor"></span><span class="preprocessor">#    define USBCLK_STARTUP_TIMEOUT    (OSC1_STARTUP_TIMEOUT*(1000000/AVR32_SCIF_RCOSC_FREQUENCY))</span>
<a name="l01152"></a>01152 <span class="preprocessor"></span><span class="preprocessor">#  else</span>
<a name="l01153"></a>01153 <span class="preprocessor"></span><span class="preprocessor">#    error Unknown value for CONFIG_PLL0_SOURCE, see conf_clock.h.</span>
<a name="l01154"></a>01154 <span class="preprocessor"></span><span class="preprocessor">#  endif</span>
<a name="l01155"></a>01155 <span class="preprocessor"></span><span class="preprocessor">#elif CONFIG_USBCLK_SOURCE==USBCLK_SRC_PLL1</span>
<a name="l01156"></a>01156 <span class="preprocessor"></span><span class="preprocessor">#  if CONFIG_PLL1_SOURCE==PLL_SRC_OSC0</span>
<a name="l01157"></a>01157 <span class="preprocessor"></span><span class="preprocessor">#    define USBCLK_STARTUP_TIMEOUT    (OSC0_STARTUP_TIMEOUT*(1000000/AVR32_SCIF_RCOSC_FREQUENCY))</span>
<a name="l01158"></a>01158 <span class="preprocessor"></span><span class="preprocessor">#  elif CONFIG_PLL1_SOURCE==PLL_SRC_OSC1</span>
<a name="l01159"></a>01159 <span class="preprocessor"></span><span class="preprocessor">#    define USBCLK_STARTUP_TIMEOUT    (OSC1_STARTUP_TIMEOUT*(1000000/AVR32_SCIF_RCOSC_FREQUENCY))</span>
<a name="l01160"></a>01160 <span class="preprocessor"></span><span class="preprocessor">#  else</span>
<a name="l01161"></a>01161 <span class="preprocessor"></span><span class="preprocessor">#    error Unknown value for CONFIG_PLL1_SOURCE, see conf_clock.h.</span>
<a name="l01162"></a>01162 <span class="preprocessor"></span><span class="preprocessor">#  endif</span>
<a name="l01163"></a>01163 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l01164"></a>01164 <span class="preprocessor"></span><span class="preprocessor">#  error Unknown value for CONFIG_USBCLK_SOURCE, see conf_clock.h.</span>
<a name="l01165"></a>01165 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l01166"></a>01166 <span class="preprocessor"></span>
<a name="l01167"></a>01167 <span class="keyword">extern</span> <span class="keywordtype">void</span> sysclk_enable_usb(<span class="keywordtype">void</span>);
<a name="l01168"></a>01168 <span class="keyword">extern</span> <span class="keywordtype">void</span> sysclk_disable_usb(<span class="keywordtype">void</span>);
<a name="l01169"></a>01169 <span class="preprocessor">#endif</span>
<a name="l01170"></a>01170 <span class="preprocessor"></span>
<a name="l01171"></a>01171 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="group__sysclk__group.html#ga242399e48a97739c88b4d0c00f6101de" title="Initialize the synchronous clock system.">sysclk_init</a>(<span class="keywordtype">void</span>);
<a name="l01172"></a>01172 
<a name="l01173"></a>01173 <span class="preprocessor">#endif </span><span class="comment">/* !__ASSEMBLY__ */</span>
<a name="l01174"></a>01174 
<a name="l01176"></a>01176 
<a name="l01177"></a>01177 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l01178"></a>01178 <span class="preprocessor"></span>}
<a name="l01179"></a>01179 <span class="preprocessor">#endif</span>
<a name="l01180"></a>01180 <span class="preprocessor"></span>
<a name="l01181"></a>01181 <span class="preprocessor">#endif </span><span class="comment">/* CHIP_SYSCLK_H_INCLUDED */</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Dec 19 2011 21:04:51 for OpenShoe by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
